package com.mz.entity.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@Accessors(chain = true)
public class RoleVo {

    private Long id;
    @NotNull(message = "角色名不能为空")
    private String roleName;
    @NotNull(message = "权限不能为空")
    @Size(min = 1, message = "权限数组不能为空")
    private List<Long> permissionList;
}
